GUI Help > Create > createTreeView

createTreeView
int handle=createTreeView(int x, int y, int width, int height, handle parent)

Description:
Creates a treeview. Treeviews show items in a tree-like structure. Each item can have zero or more child items beneathed it, accessed via a small plus sign next to the item. Each item has a piece of text, and optionally an icon associated with it.

Return Value:
Handle to the new gadget.

Parameters:
x X position of new gadget
y Y position of new gadget
width Width of new gadget in pixels
height Height of new gadget in pixels
parent Handle to the parent of the new gadget, or 0 for the main window
Remarks:
TreeViews do not use item indexes to reference their items like a listbox or combobox. Instead when you add a new item its handle is returned. The handle is used to manipulate the item.

See Also:


Example:
(Note: You will need to include the GUI constants file for this example to work)